<?php

$_SESSION['title']=$_POST['title'];
$_SESSION['desc']=$_POST['desc'];
$_SESSION['searchtittle']=$_POST['searchtittle'];
$_SESSION['summary']=$_POST['summary'];
$_SESSION['cdate']=$_POST['date1'];
$_SESSION['email']=$_POST['email'];
$_SESSION['cname']=$_POST['cname'];

?>

<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
    
      <div id="register" style="background-color:#FFF;float:left;width:740px;border:0px solid #CCC; padding-left:100px;">
        <!-- Begin ContentBox -->
 <script type="text/javascript">
function cat(str)
{
	
if (str=="")
  {
	 
  document.getElementById("txtHint1").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {

    document.getElementById("txtHint1").innerHTML=xmlhttp.responseText;
    }
  }

xmlhttp.open("GET","application/getsubcat.php?q="+str,true);

xmlhttp.send();
}
</script>
<h2 style="padding-left: 20px;" class="classifiedstitle"></h2>
<form action="index.php?page=jobs&view=advertise_jobs&step=3" method="post" enctype="multipart/form-data" class="reg" name="thisForm" onsubmit="return ValidateForm2();">
 
  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="middle" align="center"><div id="error_msg" style="color:#F00; width:300px;"></div></td>
    </tr>
    <tr>
      <td valign="middle" align="center">
      <fieldset class="borders" style="width: 600px;">
    <legend class="gray12">›Step 2 ‹</legend>
      <table width="99%" align="center">
        <tbody>
          <tr bgcolor="#E3E3E3">
            <td width="36%" height="20" colspan="3" align="left" valign="middle" class="font12"style="padding-left: 20px;">Job classification</td>
          </tr>
          <tr height="35">
            <td width="5%" height="40" align="left" valign="middle">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" width="36%" align="left">Job Category *</td>
            <td valign="middle" align="left"><select name="Category" id="Category" class="txtborder" style="width:220px;" onchange="return cat(this.value)">
              <option selected="selected" value="0"></option>
              <?php  
$ads=mysql_query("select * from job_category where active_status='1' order by id ASC");
while($tech=mysql_fetch_array($ads)){
	?>
              <option <?php if($row['category_id']==$tech['id']){echo "selected";}?> value="<?php echo $tech['id']?>"> <?php echo $tech['category']?></option>
              <?php }?>
              <script language="JavaScript">
                document.thisForm.Category.value="<?php echo $_SESSION['Category'];?>";
                </script>
            </select></td>
          </tr>
          <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Job Sub Category *</td>
            <td valign="middle" align="left">
            <select name="subcat" id="txtHint1" style="width:220px;" class="txtborder">
              <?php 
	
 $ads=mysql_query("select * from job_subcategory where 	id='".$_SESSION['subcat']."' and active_status='1' order by id ASC");
while($tech=mysql_fetch_array($ads)){
	
	?>
              <option  <?php if($row['sub_cat_id']==$tech['id']){echo "selected";}?> value="<?php echo $tech['id']?>"> <?php echo $tech['sub_cat_name'];?></option>
              <?php }?>
              <script language="JavaScript">
                document.thisForm.subcat.value="<?php echo $_SESSION['subcat'];?>";
                </script>
            </select></td>
          </tr>
          <tr bgcolor="#E3E3E3">
            <td width="36%" height="20" colspan="3" align="left" valign="middle" class="font12"style="padding-left: 20px;">Salary and benefits</td>
          </tr>
          <tr height="35">
            <td height="40" align="left" valign="middle">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Range</td>
            <td valign="middle" align="left" class="font12"> $
              <input  style="width: 60px;"  type="text"   onblur="if (this.value == '') {this.value = 'Max';}" onfocus="if (this.value == 'Max') {this.value = '';}" class="txtborder" value="<?php echo $_SESSION['salary'];?>" name="salary" />
              <select style="width:140px;" class="txtborder"  name="saltype">
                <option value="0" selected="selected"></option>
                <option value="Per Hour">Per Hour</option>
                <option value="Per Month">Per Month</option>
                <option value="Per Annum">Per Annum</option>
                <option value="No salary information">No salary information</option>
                <script language="JavaScript">
                document.thisForm.saltype.value="<?php echo $_SESSION['saltype'];?>";
                </script>
              </select></td>
          </tr>
          <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Currency</td>
            <td valign="middle" align="left">
            <select style="width:220px;" name="currency" class="txtborder">
              <option value="0" selected="selected"></option>
              <option value="AUD">AUD - Australia Dollars</option>
              <option value="NZD">NZD - New Zealand Dollars</option>
              <option value="GBP">GBP - Great Britain Pounds</option>
              <option value="USD">USD - United States of America Dollars</option>
              <option value="CAD">CAD - Canada Dollars</option>
              <option value="EUR">EUR - Euro Member Countries Euro</option>
              <option value="AED">AED - United Arab Emirates Dirhams</option>
              <option value="AFA">AFA - Afghanistan Afghanis</option>
              <option value="ALL">ALL - Albania Leke</option>
              <option value="AMD">AMD - Armenia Drams</option>
              <option value="ANG">AND - Netherlands Antilles Guilders</option>
              <option value="AOA">AOA - Angola Kwanza</option>
              <option value="ARS">ARS - Argentina Pesos</option>
              <option value="AUD">AUD - Australia Dollars</option>
              <option value="AWG">AWG - Aruba Guilders</option>
              <option value="AZM">AZM - Azerbaijan Manats</option>
              <option value="BAM">BAM - Bosnia and Herzegovina Convertible Marka</option>
              <option value="BBD">BBD - Barbados Dollars</option>
              <option value="BDT">BDT - Bangladesh Taka</option>
              <option value="BGN">BGN - Bulgaria Leva</option>
              <option value="BHD">BHD - Bahrain Dinars</option>
              <option value="BIF">BIF - Burundi Francs</option>
              <option value="BMD">BMD - Bermuda Dollars</option>
              <option value="BND">BND - Brunei Darussalam Dollars</option>
              <option value="BOB">BOB - Bolivia Bolivianos</option>
              <option value="BRL">BRL - Brazil Real</option>
              <option value="BSD">BSD - Bahamas Dollars</option>
              <option value="BTN">BTN - Bhutan Ngultrum</option>
              <option value="BWP">BWP - Botswana Pulas</option>
              <option value="BYR">BYR - Belarus Rubles</option>
              <option value="BZD">BZD - Belize Dollars</option>
              <option value="CAD">CAD - Canada Dollars</option>
              <option value="CDF">CDF - Congo/Kinshasa Congolese Francs</option>
              <option value="CHF">CHF - Switzerland Francs</option>
              <option value="CLP">CLP - Chile Pesos</option>
              <option value="CNY">CNY - China Yuan Renminbi</option>
              <option value="COP">COP - Colombia Pesos</option>
              <option value="CRC">CRC - Costa Rica Colones</option>
              <option value="CUP">CUP - Cuba Pesos</option>
              <option value="CVE">CVE - Cape Verde Escudos</option>
              <option value="CYP">CYP - Cyprus Pounds</option>
              <option value="CZK">CZK - Czech Republic Koruny</option>
              <option value="DJF">DJF - Djibouti Francs</option>
              <option value="DKK">DKK - Denmark Kroner</option>
              <option value="DOP">DOP - Dominican Republic Pesos</option>
              <option value="DZD">DZD - Algeria Algeria Dinars</option>
              <option value="EEK">EEK - Estonia Krooni</option>
              <option value="EGP">EGP - Egypt Pounds</option>
              <option value="ERN">ERN - Eritrea Nakfa</option>
              <option value="ETB">ETB - Ethiopia Birr</option>
              <option value="EUR">EUR - Euro Member Countries Euro</option>
              <option value="FJD">FJD - Fiji Dollars</option>
              <option value="FKP">FKP - Falkland Islands (Malvinas) Pounds</option>
              <option value="GBP">GBP - United Kingdom Pounds</option>
              <option value="GEL">GEL - Georgia Lari</option>
              <option value="GGP">GGP - Guernsey Pounds</option>
              <option value="GHC">GHC - Ghana Cedis</option>
              <option value="GIP">GIP - Gibraltar Pounds</option>
              <option value="GMD">GMD - Gambia Dalasi</option>
              <option value="GNF">GNF - Guinea Francs</option>
              <option value="GTQ">GTQ - Guatemala Quetzales</option>
              <option value="GYD">GYD - Guyana Dollars</option>
              <option value="HKD">HKD - Hong Kong Dollars</option>
              <option value="HNL">HNL - Honduras Lempiras</option>
              <option value="HRK">HRK - Croatia Kuna</option>
              <option value="HTG">HTG - Haiti Gourdes</option>
              <option value="HUF">HUF - Hungary Forint</option>
              <option value="IDR">IDR - Indonesia Rupiahs</option>
              <option value="ILS">ILS - Israel New Shekels</option>
              <option value="IMP">IMP - Isle of Man Pounds</option>
              <option value="INR">INR - India Rupees</option>
              <option value="IQD">IQD - Iraq Dinars</option>
              <option value="IRR">IRR - Iran Rials</option>
              <option value="ISK">ISK - Iceland Kronur</option>
              <option value="JEP">JEP - Jersey Pounds</option>
              <option value="JMD">JMD - Jamaica Dollars</option>
              <option value="JOD">JOD - Jordan Dinars</option>
              <option value="JPY">JPY - Japan Yen</option>
              <option value="KES">KES - Kenya Shillings</option>
              <option value="KGS">KGS - Kyrgyzstan Soms</option>
              <option value="KHR">KHR - Cambodia Riels</option>
              <option value="KMF">KMF - Comoros Francs</option>
              <option value="KPW">KPW - Korea (North) Won</option>
              <option value="KRW">KPW - Korea (South) Won</option>
              <option value="KWD">KWD - Kuwait Dinars</option>
              <option value="KYD">KYD - Cayman Islands Dollars</option>
              <option value="KZT">KZT - Kazakstan Tenge</option>
              <option value="LAK">LAK - Laos Kips</option>
              <option value="LBP">LBP - Lebanon Pounds</option>
              <option value="LKR">LKR - Sri Lanka Rupees</option>
              <option value="LRD">LRD - Liberia Dollars</option>
              <option value="LSL">LSL - Lesotho Malot</option>
              <option value="LTL">LTL - Lithuania Litai</option>
              <option value="LVL">LVL - Latvia Lati</option>
              <option value="LYD">LYD - Libya Dinars</option>
              <option value="MAD">MAD - Morocco Dirhams</option>
              <option value="MDL">MDL - Moldova Lei</option>
              <option value="MGA">MGA - Madagascar Ariary</option>
              <option value="MKD">MKD - Macedonia Denars</option>
              <option value="MMK">MMK - Myanmar (Burma) Kyats</option>
              <option value="MNT">MNT - Mongolia Tugriks</option>
              <option value="MOP">MOP - Macau Patacas</option>
              <option value="MRO">MRO - Mauritania Ouguiyas</option>
              <option value="MTL">MTL - Malta Liri</option>
              <option value="MUR">MUR - Mauritius Rupees</option>
              <option value="MVR">MVR - Maldives (Maldive Islands) Rufiyaa</option>
              <option value="MWK">MWK - Malawi Kwachas</option>
              <option value="MXN">MXN - Mexico Pesos</option>
              <option value="MYR">MYR - Malaysia Ringgits</option>
              <option value="MZM">MZM - Mozambique Meticais</option>
              <option value="NAD">NAD - Namibia Dollars</option>
              <option value="NGN">NGN - Nigeria Nairas</option>
              <option value="NIO">NIO - Nicaragua Gold Cordobas</option>
              <option value="NOK">NOK - Norway Krone</option>
              <option value="NPR">NPR - Nepal Nepal Rupees</option>
              <option value="NZD">NZD - New Zealand Dollars</option>
              <option value="OMR">OMR - Oman Rials</option>
              <option value="PAB">PAB - Panama Balboa</option>
              <option value="PEN">PEN - Peru Nuevos Soles</option>
              <option value="PGK">PGK - Papua New Guinea Kina</option>
              <option value="PHP">PHP - Philippines Pesos</option>
              <option value="PKR">PKR - Pakistan Rupees</option>
              <option value="PLN">PLN - Poland Zlotych</option>
              <option value="PYG">PYG - Paraguay Guarani</option>
              <option value="QAR">QAR - Qatar Rials</option>
              <option value="ROL">ROL - Romania Lei</option>
              <option value="RUR">RUR - Russia Rubles</option>
              <option value="RWF">RWF - Rwanda Rwanda Francs</option>
              <option value="SAR">SAR - Saudi Arabia Riyals</option>
              <option value="SBD">SBD - Solomon Islands Dollars</option>
              <option value="SCR">SCR - Seychelles Rupees</option>
              <option value="SDD">SDD - Sudan Dinars</option>
              <option value="SEK">SEK - Sweden Kronor</option>
              <option value="SGD">SGD - Singapore Dollars</option>
              <option value="SHP">SHP - Saint Helena Pounds</option>
              <option value="SIT">SIT - Slovenia Tolars</option>
              <option value="SKK">SKK - Slovakia Koruny</option>
              <option value="SLL">SLL - Sierra Leone Leones</option>
              <option value="SOS">SOS - Somalia Shillings</option>
              <option value="SPL">SPL - Seborga Luigini</option>
              <option value="SRG">SRG - Suriname Guilders</option>
              <option value="STD">STD - São Tome and Principe Dobras</option>
              <option value="SVC">SVC - El Salvador Colones</option>
              <option value="SYP">SYP - Syria Pounds</option>
              <option value="SZL">SZL - Swaziland Emalangeni</option>
              <option value="THB">THB - Thailand Baht</option>
              <option value="TJS">TJS - Tajikistan Somoni</option>
              <option value="TMM">TMM - Turkmenistan Manats</option>
              <option value="TND">TND - Tunisia Dinars</option>
              <option value="TOP">TOP - Tonga Pa'anga</option>
              <option value="TRL">TRL - Turkey Liras</option>
              <option value="TTD">TTD - Trinidad and Tobago Dollars</option>
              <option value="TVD">TVD - Tuvalu Tuvalu Dollars</option>
              <option value="TWD">TWD - Taiwan New Dollars</option>
              <option value="TZS">TZS - Tanzania Shillings</option>
              <option value="UAH">UAH - Ukraine Hryvnia</option>
              <option value="UGX">UGX - Uganda Shillings</option>
              <option value="USD">USD - United States of America Dollars</option>
              <option value="UYU">UYU - Uruguay Pesos</option>
              <option value="UZS">UZS - Uzbekistan Sums</option>
              <option value="VEB">VEB - Venezuela Bolivares</option>
              <option value="VND">VND - Viet Nam Dong</option>
              <option value="VUV">VUV - Vanuatu Vatu</option>
              <option value="WST">WST - Samoa Tala</option>
              <option value="XAF">XAF - Communauté Financière Africaine BEAC Francs</option>
              <option value="XAG">XAG - Silver Ounces</option>
              <option value="XAU">XAU - Gold Ounces</option>
              <option value="XCD">XCD - East Caribbean Dollars</option>
              <option value="XDR">XDR - International Monetary Fund (IMF) Special Drawing Right</option>
              <option value="XOF">XOF - Communauté Financière Africaine BCEAO Francs</option>
              <option value="XPD">XPD - Palladium Ounces</option>
              <option value="XPF">XPF - Comptoirs Français du Pacifique Francs</option>
              <option value="XPT">XPT - Platinum  Ounces</option>
              <option value="YER">YER - Yemen Rials</option>
              <option value="YUM">YUM - Yugoslavia New Dinars</option>
              <option value="ZAR">ZAR - South Africa Rand</option>
              <option value="ZMK">ZMK - Zambia Kwach</option>
              <option value="ZWD">ZWD - Zimbabwe Zimbabwe Dollar</option>
              <script language="JavaScript">
                document.thisForm.currency.value="<?php echo $_SESSION['currency'];?>";
                </script>
            </select></td>
          </tr>
          <tr bgcolor="#E3E3E3">
            <td width="36%" height="20" colspan="3" align="left" valign="middle" class="font12"style="padding-left: 20px;"> Location and position type</td>
          </tr>
          <tr height="35">
            <td height="40" align="left" valign="middle">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Location *</td>
            <td valign="middle" align="left"><select name="location" id="location" class="txtborder" style="width:220px;" >
              <option selected="selected" value="0"></option>
              <?php 
	
	
$ads=mysql_query("select * from zone where active_status='1' order by id ASC");
while($tech=mysql_fetch_array($ads)){
	
	?>
              <option <?php if($row['zone_id']==$tech['id']){echo "selected";}?> value="<?php echo $tech['id']?>"> <?php echo $tech['zone_name']?></option>
              <?php }?>
            </select>
              <script language="JavaScript">
                document.thisForm.location.value="<?php echo $_SESSION['location'];?>";
                </script></td>
          </tr>
          <tr height="35">
            <td valign="middle" align="left">&nbsp;</td>
            <td style="padding-left: 20px;" class="font12" valign="middle" align="left">Work Type *</td>
            <td valign="middle" align="left"><select name="worktype" id="worktype" class="txtborder" style="width:220px;">
              <option value="0" selected="selected"></option>
              <option value="Full Time">Full Time</option>
              <option value="Part Time">Part Time</option>
              <option value="Contract">Contract</option>
              <option value="Temporary">Temporary</option>
              <option value="Casual">Casual</option>
              <script language="JavaScript">
                document.thisForm.worktype.value="<?php echo $_SESSION['worktype'];?>";
                </script>
            </select></td>
          </tr>
          <tr height="35">
            <td colspan="2" valign="middle" align="left">
            <input type="button" value="Back" onclick="history.go(-1)" class="buttonbg" /></td>
            <td valign="middle" align="right">
            <input name="submit" type="submit" value="Next" class="buttonbg" /></td>
          </tr>
        </tbody>
        <tbody>
        </tbody>
        <tbody>
        </tbody>
        <tbody>
        </tbody>
        <tbody>
        </tbody>
      </table>
      </fieldset>
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>
</form>

      </div>      
      
    
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
      
    </div>
    <!-- End mainWarpArea -->
  </div>